<!DOCTYPE html>
            
<HTML>
<HEAD>
<meta name="booktitle" content="Developing Applications With Objective Caml" >
 <meta charset="ISO-8859-1"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<META name="GENERATOR" content="hevea 1.05-7 of 2000-02-24">
<META NAME="Author" CONTENT="Christian.Queinnec@lip6.fr">
<LINK rel=stylesheet type="text/css" href="videoc-ocda.css">
<script language="JavaScript" src="videoc.js"><!--
//--></script>
<TITLE>
 OCamlBrowser
</TITLE>
</HEAD>
<BODY class="regularBody">
<A HREF="book-ora212.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Contents"></A>
<A HREF="book-ora214.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
<HR>

<H2> OCamlBrowser</H2>
<A NAME="@concepts366"></A>
<A NAME="@fonctions501"></A>OcamlBrowser is a code browser for Objective CAML, providing a
<TT>LablTk</TT>-based graphical user interface. It integrates
a ``navigator'' allowing to browse various modules, to look at their
contents (names of values and types), and to edit them.<BR>
<BR>
When launching OCamlBrowser by the command <TT>ocamlbrowser</TT>, the
list of all the compiled modules available (see figure <A HREF="book-ora213.html#browser1">B.2</A>)
is displayed. One can add more modules by specifying a path to find
them. From the menu <TT>File</TT>, one can launch a toplevel interactive
loop or an editor in a new window.<BR>
<BR>
<BLOCKQUOTE><DIV ALIGN=center><HR WIDTH="80%" SIZE=2></DIV>
<DIV ALIGN=center>
<IMG SRC="book-ora086.gif">
<BR>
<BR>
<DIV ALIGN=center>Figure B.2: OCamlBrowser : the main window<A NAME="browser1"></A></DIV><BR>

</DIV>
<DIV ALIGN=center><HR WIDTH="80%" SIZE=2></DIV></BLOCKQUOTE>When one of the modules is clicked on, a new window opens to display
its contents (see figure <A HREF="book-ora213.html#browser2">B.3</A>). By selecting a value, 
its type appears in bottom of the window.<BR>
<BR>
<BLOCKQUOTE><DIV ALIGN=center><HR WIDTH="80%" SIZE=2></DIV>
<DIV ALIGN=center>
<IMG SRC="book-ora087.gif">
<BR>
<BR>
<DIV ALIGN=center>Figure B.3: OCamlBrowser : module contents<A NAME="browser2"></A></DIV><BR>

</DIV>
<DIV ALIGN=center><HR WIDTH="80%" SIZE=2></DIV></BLOCKQUOTE>In the main window, one can search on the name of a function. The
result appears in a new window. The figure <A HREF="book-ora213.html#browser3">B.4</A> shows the
result of a search on the word <TT>create</TT>.<BR>
<BR>
<BLOCKQUOTE><DIV ALIGN=center><HR WIDTH="80%" SIZE=2></DIV>
<DIV ALIGN=center>
<IMG SRC="book-ora088.gif">
<BR>
<BR>
<DIV ALIGN=center>Figure B.4: OCamlBrowser : search for <TT>create</TT><A NAME="browser3"></A></DIV><BR>

</DIV>
<DIV ALIGN=center><HR WIDTH="80%" SIZE=2></DIV></BLOCKQUOTE>There are other possibilities that we let the user discover. <BR>
<BR>

<BR>
<BR>



<HR>
<A HREF="book-ora212.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Contents"></A>
<A HREF="book-ora214.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
</BODY>
</HTML>
